<template>
  <div class="recomend">
    <div v-for="(item,index) in recomends"
         :key="index"
         class="recomend_item">
      <a :href="item.link">
        <img :src="item.image"
             alt="">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeRecommendView',
  props: {
    recomends: {
      type: Array,
      default() {
        return []
      }
    }
  },
  data() {
    return {

    };
  },
  created() {

  },
  mounted() {

  },
  methods: {

  }
};
</script>

<style scoped>
.recomend {
  display: flex;
  width: 100%;
  font-size: 12px;

  padding: 10px 0 20px;
  border-bottom: 8px solid #eee;
}

.recomend_item {
  flex: 1;
}

.recomend_item a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.recomend_item img {
  margin-bottom: 10px;
  width: 80%;
}
</style>

